package com.atguigu.tingshu.order.mapper;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    Page<OrderInfo> getOrderByPage(@Param("userId") Long userId, Page<OrderInfo> pageInfo);

    int updateOrderStatus(@Param("orderNo") String orderNo,@Param("orderStatusCondition")String orderStatusCondition, @Param("orderStatusPaid") String orderStatusPaid);
}
